package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsTermCourse = "cms_term_course"

func init() {
	var r = &CmsTermCourse{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsTermCourse struct {
	TermCourseId int    `json:"termCourseId" form:"termCourseId" column:"term_course_id" primary:"true" modify:"false"`
	TermId       int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	CourseId     int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	OrderNum     int    `json:"orderNum" form:"orderNum" column:"order_num" modify:"true"`
	StartTime    string `json:"startTime" form:"startTime" column:"start_time" modify:"true"`
	EndTime      string `json:"endTime" form:"endTime" column:"end_time" modify:"true"`
	CreateTime   string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime   string `modify:"false" json:"updateTime" form:"updateTime" column:"update_time"`
}

func (r *CmsTermCourse) Name() string {
	return RecordNameCmsTermCourse
}
